package org.metasketch.editor.perspectives;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class PerspectiveManager {

	static SimplePerspectiveManager manager = new SimplePerspectiveManager();

	// static List<String> names = new ArrayList<String>();
	// static List<Perspective> perspectives = new ArrayList<Perspective>();
	// static Map<String, Perspective> perspectivePerName = new HashMap<String,
	// Perspective>();
	// private static String defaultPerspective;

	public static String getDefaultPerspective() {
		return manager.getDefaultPerspective();
	}

	public static void setDefault(Perspective perspective) {
		manager.setDefault(perspective);
	}

	public static void register(Perspective perspective) {
		manager.register(perspective);
	}

	public static Perspective getPerspective(String name) {
		return manager.getPerspective(name);
	}

	// public static List<String> getDiagramTypeNames(String name) {
	// return perspectivePerName.get(name).getDiagramTypeManager().getNames();
	// }

	public static ILayout getLayout(String name) {
		return manager.getLayout(name);
	}

	public static List<String> getNames() {
		return manager.getNames();
	}

}
